const { OpenAI } = require('openai');
const openai = new OpenAI({
    apiKey: process.env.DASHSCOPE_API_KEY,
    baseURL: "https://dashscope.aliyuncs.com/compatible-mode/v1"
});

async function main() {
    // try {
    //     const completion = await openai.chat.completions.create({
    //         model: "deepseek-r1",
    //         messages: [
    //             { role: "user", content: "9.9和9.11谁大" }
    //         ],
    //     });
    //     console.log("思考过程：");
    //     console.log(completion.choices[0].message.reasoning_content);
    //     console.log("最终答案：");
    //     console.log(completion.choices[0].message.content);
    // } catch (error) {
    //     console.error("发生错误:", error);
    // }
    console.log('ai chat');
    
}

main();
